package com.lzx.common;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.LocaleResolver;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * MyWebAppConfiguration
 *
 * @author liuzp
 * @version 1.0
 * @createTime 2019-06-10 11:32
 * @description 国际化配置
 **/
@Configuration
public class MyWebAppConfiguration implements WebMvcConfigurer {

    @Bean
    public LocaleResolver localeResolver() {
        return new MyLocaleReslover();
    }
}
